package cevent.source.cloudcenter.server.dto;
<#list typeSet as type>
    <#if type=="Date">
        import java.util.Date;
        import com.fasterxml.jackson.annotation.JsonFormat;
    </#if>
    <#if type=="BigDecimal">
        import java.math.BigDecimal;
    </#if>
</#list>


/**
 * @author cevent
 * @description ${tableNameCN} 模块传输层
 */
public class ${Domain}Dto {

    <#list fieldUtilList as field>
        //${field.comment}
        <#if field.javaType="Date">
            @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        </#if>
        private ${field.javaType} ${field.nameSmallHump};
    </#list>

    <#list fieldUtilList as field>
        public ${field.javaType} get${field.nameBigHump}(){
            return  ${field.nameSmallHump};
        }
        public void set${field.nameBigHump}(${field.javaType} ${field.nameSmallHump}){
            this.${field.nameSmallHump}=${field.nameSmallHump};
        }
    </#list>

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [ ");
        sb.append("Hash = ").append(hashCode());

        <#list fieldUtilList as field>
            sb.append(", ${field.nameSmallHump} = ").append(${field.nameSmallHump});
        </#list>
        sb.append(" ] ");
        return sb.toString();
    }
}
